@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">

            <div class="col-md-8 col-md-offset-2">
                <div class="panel panel-default">
                    <div class="panel-heading">正在找回密码</div>

                    <div class="panel-body">
                        @include('Common._messages')
                        <form class="form-horizontal" method="POST" action="{{ route('password.resetCodeSms') }}">
                            {{ csrf_field() }}
                            <div class="form-group {{ $errors->has('mobile') ? ' has-error' : '' }}">
                                <label for="mobile" class="col-md-4 control-label">手机号码</label>

                                <div class="col-md-6">
                                    <input id="mobile" type="text" class="form-control"  name="mobile" value="{{ old('mobile') }}" required>

                                    @if ($errors->has('mobile'))
                                        <span class="help-block">
                                        <strong>{{ $errors->first('mobile') }}</strong>
                                    </span>
                                    @endif
                                </div>
                            </div>
                            <div class="form-group{{ $errors->has('CodeSms') ? ' has-error' : '' }}">
                                <label for="email" class="col-md-4 control-label">收到的短信验证码：</label>

                                <div class="col-md-6">
                                    <input id="mobile" type="text" class="form-control" name="CodeSms" value="{{ old('CodeSms') }}" required>

                                    @if ($errors->has('CodeSms'))
                                        <span class="help-block">
                                        <strong>{{ $errors->first('CodeSms') }}</strong>
                                    </span>
                                    @endif
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-md-4 col-md-offset-4">
                                    <button type="submit" class="btn btn-primary btn-block">
                                        下一步
                                    </button>

                                </div>
                                <div class="col-md-1 col-md-offset-1">
                                    <a class="btn btn-link" href="{{ route('password.request') }}">

                                    </a>

                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

